package com.good.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SecondaryTables;
import javax.persistence.SequenceGenerator;

/**
 * @author ieei
 * secondaryTable 这是个实体有2张表
 */
@Entity
@SecondaryTables({@javax.persistence.SecondaryTable(name="second1"),@javax.persistence.SecondaryTable(name="second2")})
@SequenceGenerator(name="myGenerator",sequenceName="xx_secondary_table")
public class SecondaryTable extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String t1;
	private String t2;
	@Column(table="second1")
	public String getT1() {
		return t1;
	}
	public void setT1(String t1) {
		this.t1 = t1;
	}
	/**
	 * @return
	 */
	@Column(table="second2")
	public String getT2() {
		return t2;
	}
	public void setT2(String t2) {
		this.t2 = t2;
	}
}
